package com.itheima.mall.service.omsService;

import com.itheima.pojo.oms.OmsOrderSetting;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Service
public class OmsOrderSettingService {
    @DubboReference
    private OmsOrderSettingApi omsOrderSettingApi;

    public OmsOrderSetting findById(Integer id) {
       return  omsOrderSettingApi.findById(id);
    }

    public void updateById(Integer id, OmsOrderSetting omsOrderSetting) {
        omsOrderSetting.setId(id.longValue());
        omsOrderSettingApi.updateById(omsOrderSetting);
    }
}
